package cn.asterly.cicada.web.utils;

import org.springframework.util.DigestUtils;

import java.io.InputStream;

public class MD5Test {
    public static void main(String[] args) {
        String passowrd="123456";
        byte[] bytes = DigestUtils.md5Digest(passowrd.getBytes());
        System.out.println(bytes.toString());

        String s = DigestUtils.md5DigestAsHex(passowrd.getBytes());
        System.out.println(s);
    }
}
